<?php
use \services\models\UpFileData;
$conId = Yii::$app->controller->id;
$actId = Yii::$app->controller->action->id;
$act_id = Yii::$app->request->get('activity_id', 0);
?>
<!DOCTYPE HTML>
<html>
<head>
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><?php echo $detail_info->c_name;?></title>
<link rel="stylesheet" type="text/css" href="<?=Yii::getAlias('@static')?>/wap/minisite/shares/css/style.css">
</head>
<body class="page_list">
<div class="list_banner"><img src="<?php echo UpFileData::showImage($detail_info->c_image);?>"></div>
<div class="list_description"><?php echo $detail_info->c_content;?></div>
<div class="channel"> 
  <ul class="channel_items" id="channelItems"></ul>
</div>
<div class="clear"></div>
<div class="temp_loadmore">加载中...</div>
<div class="publish_fixed">
	<a data-status="<?=$detail_info->c_status;?>" id="join-activity" href="javascript:;"><span class="icon icon_edit"></span><br>参与</a>
</div>
<script src="<?= Yii::getAlias('@static')?>/wap/common/js/jquery-2.2.0.min.js"></script> 
<script src="<?= Yii::getAlias('@static')?>/wap/common/js/fastclick.min.js"></script>
<script src="<?= Yii::getAlias('@static')?>/wap/common/js/king.wap.js"></script>
<script src="<?= Yii::getAlias('@static')?>/wap/minisite/shares/js/share-list.js"></script>
<script>
var requestListUrl = "<?=Yii::$app->urlManager->createUrl(["$conId/get-list", 'act_id'=>$act_id,'page'=>'']);?>";
var requestPraiseUrl = "<?=Yii::$app->urlManager->createUrl(["$conId/click-like",'asf_id'=>'']);?>";
var resquestJoinUrl = "<?=Yii::$app->urlManager->createUrl(["$conId/join-activity", 'act_id'=>$act_id]);?>";
var uid = "<?=$uid;?>";
var loginUrl = "<?=$loginUrl?>";
</script>
<div style="display: none;">
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "//hm.baidu.com/hm.js?a52dc90ef87f9447cc988c4aaf719dba";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>
</div>
<!-- 微信分享文案,其他浏览器自动忽略 -->
<?= common\widgets\WeChatShareWidget::widget(['type'=>$this->context->layout_data]);?>
</body>
</html>
